<%@ Page Theme="BlueSkin" Title="LMS :  Admin --> Accounts --> Edit Accounts" Language="C#" MasterPageFile="~/LmsWebSite/MasterEN.master" AutoEventWireup="true" CodeFile="AccountsEN.aspx.cs" Inherits="AccountsEN" %>




<%@ Register src="MyCalender.ascx" tagname="MyCalender" tagprefix="uc1" %>




<%@ Register src="OrganizationChartControl.ascx" tagname="OrganizationChartControl" tagprefix="uc2" %>




<%@ Register src="AreaControl.ascx" tagname="AreaControl" tagprefix="uc3" %>




<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    
    
    
    
   


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
        <asp:UpdateProgress ID="uprogress1" runat="server">
            <ProgressTemplate>
            
                <div style="position:fixed;width:30px;height:30px;top:0px;right:0px;border:1px solid orange;">
                    <img src="images/loading.gif" style="width:30px;height:30px;"  alt='Loading' title='Loading'/>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    
        
        
        
        
<table cellspacing="5" cellpadding="5" width="100%">
        <tr>
            <td align="left" class="heading">
                Admin --> <a href="AccountsViewEN.aspx">Accounts</a> --> Edit Accounts
            </td>
        </tr>
    </table>
    <br />
    
    <div class="aligning allWidthWithMargins direction" style="margin-bottom:10px;margin-left:30px;margin-right:30px;font-size:14px;">
       
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblName_AR" runat="server" Text="Arabic First Name *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtName_AR" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RequiredFieldValidator ID="rfvName_AR" runat="server" ErrorMessage="You must enter an arabic first name" ControlToValidate="txtName_AR">*</asp:RequiredFieldValidator>
        </div>
        
        <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblMiddleName_AR" runat="server" Text="Arabic Middle Name"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtMiddleName_AR" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>
        
        <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblFamilyName_AR" runat="server" Text="Arabic Last Name *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtFamilyName_AR" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RequiredFieldValidator ID="rfvFamilyName_AR" runat="server" ErrorMessage="You must enter an arabic last name" ControlToValidate="txtFamilyName_AR">*</asp:RequiredFieldValidator>
        </div>
        
        
        <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblName_EN" runat="server" Text="English First Name *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtName_EN" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RequiredFieldValidator ID="rfvName_EN" runat="server" ErrorMessage="You must enter the english first name" ControlToValidate="txtName_EN">*</asp:RequiredFieldValidator>
        </div>
        
        
         <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblMiddleName_EN" runat="server" Text="English Middle Name"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtMiddleName_EN" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>
        
        <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblFamilyName_EN" runat="server" Text="English Last Name *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtFamilyName_EN" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RequiredFieldValidator ID="rfvFamilyName_EN" runat="server" ErrorMessage="You must enter the english last name" ControlToValidate="txtFamilyName_EN">*</asp:RequiredFieldValidator>
        </div>
        
        <div class="clearing" style="width:1px;height:10px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblGender" runat="server" Text="Gender *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:RadioButtonList ID="rblGender" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
           </asp:RadioButtonList>
        </div>  
       <div class="floating aligning direction" >
           
        </div>
        
       
       
        <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblBadge" runat="server" Text="Badge *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtBadge" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="You must enter the badge" ControlToValidate="txtBadge">*</asp:RequiredFieldValidator>
        </div>
       
       
       
      
       
       
        <div class="clearing" style="width:1px;height:10px;"></div>
       
       
       
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblBirthDay" runat="server" Text="Birth Day"></asp:Label>
        </div>        
       
       <div class="floating aligning direction" style="width:207px;">
            <uc1:MyCalender ID="calBirthDay" runat="server" />
            <div class="clearing"></div>
        </div>
       
       
       <div class="floating aligning direction" style="width:5px;">
           <asp:CustomValidator ID="cvBirthDay" runat="server" ErrorMessage="Birth day not in the correct format" OnServerValidate="cvBirthDayCal_ServerValidate">*</asp:CustomValidator>
       </div>
       
       
       <div class="clearing"></div>
       
        
        
        <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblNationality" runat="server" Text="Nationality"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:DropDownList ID="ddlNationality" runat="server" style="width:240px;">
           </asp:DropDownList>
        </div>  
       <div class="floating aligning direction" >
           
        </div>
        
        
         <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblEmail" runat="server" Text="Email "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtEmail" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RegularExpressionValidator ID="revEmail" runat="server" 
               ErrorMessage="Email not valid please write it in this form any@any.any" 
               ControlToValidate="txtEmail" 
               ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
        </div>
        
        
        
        <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblMobile1" runat="server" Text="Mobile1 "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtMobile1" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
          
        </div>
        
        
        <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblMobile2" runat="server" Text="Mobile2 "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtMobile2" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
          
        </div>
        
        <div class="clearing" style="height:10px;"></div>
        
        
        
         <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblPhone1" runat="server" Text="Phone1 "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtPhone1" runat="server" Text="" style="width:150px;"></asp:TextBox>
           &nbsp;-&nbsp;
           <asp:TextBox ID="txtInnerPhone1" runat="server" Text="" style="width:60px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
          
        </div>
        
         <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblPhone2" runat="server" Text="Phone2 "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtPhone2" runat="server" Text="" style="width:150px;"></asp:TextBox>
           &nbsp;-&nbsp;
           <asp:TextBox ID="txtInnerPhone2" runat="server" Text="" style="width:60px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
          
        </div>


         
        
        
        
        <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblUserType" runat="server" Text="User type *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:DropDownList ID="ddlPersonType" runat="server" style="width:240px;" 
               AutoPostBack="true" onselectedindexchanged="ddlPersonType_SelectedIndexChanged">
           </asp:DropDownList>
        </div>  
       <div class="floating aligning direction" >
           
        </div>
        
        <div class="clearing" style="width:1px;height:10px;"></div>
        
        
        <asp:Panel ID="pnlEmployee" runat="server" CssClass="floating aligning direction" style="width:500px;">
            
            
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblUserPreviliges" runat="server" Text="Previliges *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
          <asp:DropDownList ID="ddlUserType" runat="server" style="width:240px;">
           </asp:DropDownList> 
        </div>  
       <div class="floating aligning direction" >
           
        </div>
            
            
             <div class="clearing" style="width:1px;height:10px;"></div>
             
             
             <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblOperationArea" runat="server" Text="Operation Area *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
          


           <uc3:AreaControl ID="ac1" runat="server" />
          


        </div>  
       <div class="floating aligning direction" >
           
        </div>
            
            
             <div class="clearing" style="width:1px;height:30px;"></div>
             
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblDepartment" runat="server" Text="Department "></asp:Label>
        </div>  
        
        
        <uc2:OrganizationChartControl ID="oc1" runat="server" OnItemChanged="oc1_ItemChanged" />
        
         <div class="clearing" style="width:1px;height:30px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblOrgCodeTitle" runat="server" Text="Charge Account "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
          <asp:Label ID="lblOrgCodeBody" runat="server" Text=""></asp:Label>
        </div>  
       
       
       <div class="clearing" style="width:1px;height:30px;"></div>



       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblOfficePhone" runat="server" Text="Office phone "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtOfficePhone" runat="server" Text="" style="width:150px;"></asp:TextBox>
           &nbsp;-&nbsp;
           <asp:TextBox ID="txtOfficeInnerPhone" runat="server" Text="" style="width:60px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
          
        </div>



        <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblPositionEmail" runat="server" Text="Position Email "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtPositionEmail" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RegularExpressionValidator ID="rfvPositionEmail" runat="server" 
               ErrorMessage="Position Email not valid please write it in this form any@any.any" 
               ControlToValidate="txtPositionEmail" 
               ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
        </div>



        <div class="clearing" style="width:1px;height:10px;display:none;"></div>

       <div class="floating aligning direction" style="width:200px;display:none;">
            <asp:Label ID="lblChargeAccount" runat="server" Text="Charge Account "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;display:none;">
           <asp:TextBox ID="txtChargeAccount" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       
        

        <div class="clearing" style="width:1px;height:10px;"></div>


        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblEmploymentStatus" runat="server" Text="EmploymentStatus *"></asp:Label>
        </div>        
           
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:DropDownList ID="ddlEmploymentStatus" runat="server" width="250px">
            </asp:DropDownList>
        </div>  
       <div class="floating aligning direction" >
          
        </div>

         <div class="clearing" style="width:1px;height:10px;"></div>


         



        
        </asp:Panel>
        
        <div class="clearing" style="width:1px;height:10px;"></div>
        <asp:Panel ID="pnlFamily" runat="server" CssClass="floating aligning direction" style="width:500px;" Visible="false">
            
            
            
            <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblID" runat="server" Text="ID *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtID" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>
            
         <div class="clearing" style="width:1px;height:10px;"></div>
         
         
         <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblRelation" runat="server" Text="Family Relation *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:DropDownList ID="ddlRelation" runat="server" style="width:240px;" >
           </asp:DropDownList>
        </div>  
       <div class="floating aligning direction" >
           
        </div>
         
            
            
        </asp:Panel>
        
        
        <div class="clearing" style="width:1px;height:30px;"></div>
        
         
          <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblEducationLevel" runat="server" Text="Education level"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:DropDownList ID="ddlEducationLevel" runat="server" style="width:240px;" >
           </asp:DropDownList>
        </div>  
       <div class="floating aligning direction" >
           
        </div>




          <div class="clearing" style="width:1px;height:10px;"></div>

          <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblGroups" runat="server" Text="Security groups *"></asp:Label>
        </div>        
           
        
       
           
        <asp:Panel ID="pnlGroups" runat="server" CssClass="floating aligning direction" ScrollBars="Auto" Width="250px" Height="200px">
            <asp:CheckBoxList ID="chkGroups" runat="server">
            </asp:CheckBoxList>
        </asp:Panel>



            
       <div class="floating aligning direction" >
          
        </div>
        


         <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblPassword" runat="server" Text="Password"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtPassword" runat="server" Text="" style="width:250px;" TextMode="Password" ></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>
       
       <div class="clearing" style="width:1px;height:10px;"></div>
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblRepeatPassword" runat="server" Text="Repeat Password"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtRepeatPassword" runat="server" Text="" style="width:250px;" TextMode="Password"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:CompareValidator ID="cvRepeatPassword" runat="server" ErrorMessage="Passwords didn't matched" ControlToValidate="txtRepeatPassword" ControlToCompare="txtPassword" Operator="Equal" >*</asp:CompareValidator>
        </div>



        <div class="clearing" style="width:1px;height:10px;"></div>
        
        <div class="floating direction" style="width:500px;text-align:right">
            
            
            <div style="float:right;"><asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/></div>
            <div style="float:right;font-size:1px;width:5px;height:1px;"></div>
            <div style="float:right;"><asp:Button ID="btnDelete" runat="server" Text="Delete" 
                OnClientClick="javascript:return confirm('Are you sure , you want to delete user ?');" 
                onclick="btnDelete_Click" style="height: 26px" CausesValidation="false" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/></div>
            
            <div style="float:right;font-size:1px;width:5px;height:1px;"></div>
            
            <div style="float:right;">
                <asp:HyperLink ID="lnkBack" runat="server" NavigateUrl="~/LmsWebSite/AccountsViewEN.aspx" >Back</asp:HyperLink>
            
            </div>
            
            <div class="clearing"></div>
        
        </div>
        
        <div class="clearing" style="width:1px;height:10px;"></div>
        
        
        <div class="floating alinging direction" style="width:500px;">
            <asp:ValidationSummary ID="vs1" runat="server" />
           <br />
           <asp:Label ID="lblError" EnableViewState="false" runat="server" Text="" ForeColor="Red" Width="100%"></asp:Label><br />
           <asp:Label ID="lblResult" EnableViewState="false" runat="server" Text="" ForeColor="Green" Width="100%"></asp:Label></div><div class="clearing" style="margin-bottom:200px;">
            
        </div>
       
       
       
       
    </div>
    
    
    
    
        
    
    
        </ContentTemplate>
        </asp:UpdatePanel>


</asp:Content>

